package com.chixing.day02_switch_case.test;

public class Work1_1 {
    public static void main(String[] args) {
        int[] array = {1, 2, 3, 4, 3, 5, 6, 7, 4, 1};
        for (int i = 0; i < array.length; i++) {
            boolean flag=true;
            for (int j = 0; j < array.length; j++) {
                if(i!=j&&array[i]==array[j]){
                    flag=false;
                }
            }
            if (flag)
                System.out.println(array[i]);
        }
    }
}
